﻿using UnityEngine;
using System.Collections;
using System;

[Serializable]
public class MapObject {

    protected long id;

    protected String tag;

    protected MapObjectClickListener clickListener;

    public long Id
    {
        get
        {
            return id;
        }

        set
        {
            id = value;
        }
    }

    public string Tag
    {
        get
        {
            return tag;
        }

        set
        {
            tag = value;
        }
    }

    /// <summary>
    /// 设置点击事件
    /// </summary>
    /// <param name="clickListener"></param>
    public virtual void setClickListener(MapObjectClickListener clickListener)
    {
        this.clickListener = clickListener;
    }
}
